/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Assignment.DTO;

import Assignment.Util.DateAdapter;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 *
 * @author dieptn
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="orderType", propOrder={
    "orderID",
    "username",
    "orderDate",
    "deliveryDate",
    "totalPrice",
    "status",
    "note"
})
public class OrderDTO {
    @XmlElement(required=true)
    private String orderID;
    @XmlElement(required=true)
    private String username;
    @XmlElement(required=true, nillable=true)
    @XmlJavaTypeAdapter(DateAdapter.class)
    private Date orderDate;
    @XmlElement(required=true, nillable=true)
    @XmlJavaTypeAdapter(DateAdapter.class)
    private Date deliveryDate;
    @XmlElement(required=true, nillable=true)
    private float totalPrice;
    @XmlElement(required=true, nillable=true)
    private String status;
    @XmlElement(required=true, nillable=true)
    private String note;

    public OrderDTO() {
    }

    
    /**
     * @return the orderID
     */
    public String getOrderID() {
        return orderID;
    }

    /**
     * @param orderID the orderID to set
     */
    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the orderDate
     */
    public Date getOrderDate() {
        return orderDate;
    }

    /**
     * @param orderDate the orderDate to set
     */
    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    /**
     * @return the deliveryDate
     */
    public Date getDeliveryDate() {
        return deliveryDate;
    }

    /**
     * @param deliveryDate the deliveryDate to set
     */
    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    /**
     * @return the totalPrice
     */
    public float getTotalPrice() {
        return totalPrice;
    }

    /**
     * @param totalPrice the totalPrice to set
     */
    public void setTotalPrice(float totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * @return the note
     */
    public String getNote() {
        return note;
    }

    /**
     * @param note the note to set
     */
    public void setNote(String note) {
        this.note = note;
    }
    

}
